home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / prog / pas_all.zip / TI423.ASC < prev    next >
Text File  |  1991-09-11  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.   PRODUCT  :  TURBO PASCAL                           NUMBER  :  423
  8.   VERSION  :  4.0
  9.        OS  :  MS-DOS, PC-DOC
  10.      DATE  :  SEPTEMBER 20, 1988                       PAGE  :  1/1
  11.  
  12.     TITLE  :  PATCH FOR ^KW BLOCK WRITE DISK FILE SIZE NOT
  13.               TRUNCATED BUG
  14.  
  15.  
  16.  
  17.  
  18.   This  handout  describes  the patch needed in order for the Turbo
  19.   Pascal 4.0 editor to  correctly  block copy a portion of code out
  20.   of  a  source  file and truncate the file's size on  disk.    The
  21.   following  patch  should  be made to the TURBO.EXE file using the
  22.   DOS utility, DEBUG.
  23.  
  24.      1.  Copy TURBO.EXE to a  file  called  TURBO.TXT.  (DEBUG will
  25.          not allow modifications to be made to an .EXE file.)
  26.  
  27.      2.  Load TURBO.TXT into DEBUG with the command:
  28.  
  29.          DEBUG TURBO.TXT
  30.  
  31.      3.  At DEBUG'S "-" prompt, enter the command E CS:3FCD.  Press
  32.          <Return>.  This  allows you to edit the  code  at  address
  33.          CS:3FCD.  The number 01. will  appear.   Type 3 next to it
  34.          and press <Return>.  Enter W <Return> to write the patched
  35.          program  to  disk  and  Q  <Return>  to  quit.   You  have
  36.          successsfully patched Turbo Pascal.    Your  DEBUG session
  37.          should look something like this:
  38.  
  39.          C:\TURBO>debug turbo.txt
  40.          -e CS:3FCD
  41.          29C9:3FCD  01.3
  42.          -w
  43.          Writing 1C248 bytes
  44.          -q
  45.  
  46.      4.  Rename  TURBO.TXT  to  TU.EXE.    (Use a name  other  than
  47.          TURBO.EXE so you can distinguish between the  original and
  48.          corrected versions.)
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.